<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            padding-top: 10px;
            width: 200px;
            height: 200px;
            background-color: pink;
            margin-top: 200px;
        }

        .smallbox {
            width: 50px;
            height: 50px;
            background-color: #000;
            /* margin-right: -50%; */
            margin-left: 50px;
            margin-top: -50%;
            transform: translateY(200%);


        }
    </style>
</head>

<body>
    <div class="box">
        <div class="smallbox">

        </div>
    </div>
</body>

</html>